package com.gxc.datacore.metadata.domain;

import com.gxc.dbcore.annotation.Entity;
import com.gxc.dbcore.annotation.Id;

@Entity(table = "datacenter_database")
public class Database {

	@Id
	private String id;

	private String db_type;

	private String db_name;

	private String db_host;

	private String db_port;

	private String database_name;

	private String schema_name;

	private String username;

	private String password;

	/**
	 * 自定义jdbc_url
	 */
	private String jdbc_url;

	private Integer initial_pool_size;

	private Integer min_pool_size;

	private Integer max_pool_size;

	/**
	 * 最大空闲时间
	 */
	private Integer max_idle_time;

	/**
	 * 检查空闲连接间隔时间
	 */
	private Integer idle_connection_test_period;

	/**
	 * 一次获取连接数
	 */
	private Integer acquire_increment;

	/**
	 * 尝试连接次数
	 */
	private Integer acquire_retry_attempts;

	/**
	 * 备注
	 */
	private String note;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getDb_type() {
		return db_type;
	}

	public void setDb_type(String db_type) {
		this.db_type = db_type;
	}

	public String getDb_name() {
		return db_name;
	}

	public void setDb_name(String db_name) {
		this.db_name = db_name;
	}

	public String getDb_host() {
		return db_host;
	}

	public void setDb_host(String db_host) {
		this.db_host = db_host;
	}

	public String getDb_port() {
		return db_port;
	}

	public void setDb_port(String db_port) {
		this.db_port = db_port;
	}

	public String getDatabase_name() {
		return database_name;
	}

	public void setDatabase_name(String database_name) {
		this.database_name = database_name;
	}

	public String getSchema_name() {
		return schema_name;
	}

	public void setSchema_name(String schema_name) {
		this.schema_name = schema_name;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getJdbc_url() {
		return jdbc_url;
	}

	public void setJdbc_url(String jdbc_url) {
		this.jdbc_url = jdbc_url;
	}

	public Integer getInitial_pool_size() {
		return initial_pool_size;
	}

	public void setInitial_pool_size(Integer initial_pool_size) {
		this.initial_pool_size = initial_pool_size;
	}

	public Integer getMin_pool_size() {
		return min_pool_size;
	}

	public void setMin_pool_size(Integer min_pool_size) {
		this.min_pool_size = min_pool_size;
	}

	public Integer getMax_pool_size() {
		return max_pool_size;
	}

	public void setMax_pool_size(Integer max_pool_size) {
		this.max_pool_size = max_pool_size;
	}

	public Integer getMax_idle_time() {
		return max_idle_time;
	}

	public void setMax_idle_time(Integer max_idle_time) {
		this.max_idle_time = max_idle_time;
	}

	public Integer getIdle_connection_test_period() {
		return idle_connection_test_period;
	}

	public void setIdle_connection_test_period(
			Integer idle_connection_test_period) {
		this.idle_connection_test_period = idle_connection_test_period;
	}

	public Integer getAcquire_increment() {
		return acquire_increment;
	}

	public void setAcquire_increment(Integer acquire_increment) {
		this.acquire_increment = acquire_increment;
	}

	public Integer getAcquire_retry_attempts() {
		return acquire_retry_attempts;
	}

	public void setAcquire_retry_attempts(Integer acquire_retry_attempts) {
		this.acquire_retry_attempts = acquire_retry_attempts;
	}

	public String getNote() {
		return note;
	}

	public void setNote(String note) {
		this.note = note;
	}

}
